// src/api/blacklist.ts
import request from "../utils/request";

// 获取黑名单列表
export const getBlacklistList = () =>
    request.get('/api/blacklist/list');

// 解封黑名单用户
export const unbanBlacklistUser = (id: number) =>
    request.put(`/api/blacklist/${id}/unban`);

// 延长黑名单封禁时间
export const extendBlacklistBan = (id: number, days: number) =>
    request.put(`/api/blacklist/${id}`, { days });

// 成员端黑名单申诉
export const appealBlacklist = (data: any) =>
    request.post("/api/blacklist/appeal", data);